<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<s:form action="submitFeedbackForum.htm" method="post">
<s:hidden name="pageAction" value="%{pageAction}" />
<s:hidden name="uidWantedTender" value="%{uidWantedTender}" />
	<table cellpadding="0" cellspacing="0" width="100%">
		<tbody>
			<tr>
				<td align="left" width="100%">
					<b class="common-bold-text">
						<s:if test="page == 'feedbackForBuyer.htm'"><s:text name="FeedbackForum.link4" /></s:if>
						<s:else><s:text name="FeedbackForum.link3" /></s:else>
					</b>
				</td>
			</tr>
			<tr>
				<td align="left" width="100%">
					<b class="common-bold-text">
						<s:if test="page == 'feedbackForBuyer.htm'"><s:text name="feedbackform.sold.para1" /></s:if>
						<s:else><s:text name="feedbackform.para1" /></s:else>

					</b>
				</td>
			</tr>

		</tbody>
	</table>
	<table align="center" border="0" cellpadding="0" cellspacing="0"
		width="100%">
		<tbody>
			<tr>
				<td height="10">
					<img
						src="#/auction_demo/images/dot1x1.gif"
						border="0" width="5">
				</td>
			</tr>
		</tbody>
	</table>
	<table border="0" cellpadding="0" cellspacing="0" width="100%">
		<tbody>
			<tr>
				<td width="100%">
					<input name="action" value="Process_LeaveFeedbackForSeller"
						type="hidden">
					<input name="Lang" value="en" type="hidden">

					<form method="post" name="FeedbackLeave_Winner"
						action="#/auction_demo/cgi/auction.cgi"></form>

					<table border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody>
							<tr>

								<td class="lMenu" align="center" class="grid-header-bg grid-header-text" width="15%">
									<b class="common-bold-text"><s:text name="feedbackform.nr" /></b>								</td>
								<td class="lMenu" align="center" class="grid-header-bg grid-header-text" width="20%">
									<b class="common-bold-text">
										<s:if test="page == 'feedbackForBuyer.htm'"><s:text name="fineitem.Buyer.para6.3" /></s:if>
										<s:else><s:text name="fineitem.para6.3" /></s:else>
									</b>
								</td>
								<td class="lMenu" align="center" class="grid-header-bg grid-header-text" width="25%">
									<b class="common-bold-text"><s:text name="sell.para7" /></b>								</td>
								<td class="lMenu" align="center" class="grid-header-bg grid-header-text" width="20%">
									<b class="common-bold-text"><s:text name="feedbackform.bid" /></b>								</td>
								<td class="lMenu" align="center" class="grid-header-bg grid-header-text"  width="20%">
									<b class="common-bold-text"><s:text name="feedbackform.ended" /></b>								</td>
							</tr>
							<tr>
								<td colspan="5">
									<s:if test="auctionWonlist != null">
									<display:table name="auctionWonlist" cellpadding="0" pagesize="5" style="width: 100%;" cellspacing="1" requestURI="feedbackForSeller.htm" id="row" class="common-text">
										<display:column>
											<tr class="listrow0">
												<td align="center" width="15%">
													<s:property value="#attr.row.items.itemId" />
												</td>
												<td align="center" width="20%">
													<s:if test="#attr.row.items.itemtype.id == 4">
														<s:property value="#attr.row.user.userId" />
													</s:if>
													<s:else>
														<s:property value="#attr.row.items.userId.userId" />
													</s:else>
												</td>
												<td align="center" width="25%">
													<s:property value="#attr.row.items.title" />
												</td>
												<td align="center" width="20%">
													<s:property value="#attr.row.price" />
												</td>
												<td align="center" width="20%">
													<s:date name="#attr.row.items.endTime" format="dd/MM/yyyy"/>
												</td>
											</tr>
											<tr class="listrow0">
												<td colspan="5">
													<table cellpadding="2" border="0" cellspacing="0">
														<tbody>
															<tr>
																<td class="common-text">
																	<s:text name="feedbackform.para2" />												</td>
																<td>
																	<s:radio theme="simple" name="auctionWonmap[%{#attr.row.id}].rating" list="#{'1':''}" />
																	<font color="green"><b><s:text name="feedbackform.postitive" /></b> </font>
																</td>
																<td>
																	<s:radio theme="simple" name="auctionWonmap[%{#attr.row.id}].rating" list="#{'0':''}" />
																	<font color="blue"><b><s:text name="feedbackform.neutral" /></b> </font>
																</td>

															  <td>
																	<s:radio theme="simple" name="auctionWonmap[%{#attr.row.id}].rating" list="#{'-1':''}" />
																	<font color="red"><b><s:text name="feedbackform.negative" /></b> </font>
															  </td>
															</tr>
														</tbody>
													</table>
												</td>
											</tr>
											<tr class="listrow0">
												<td colspan="5" class="common-text">
													<s:text name="feedbackform.message">
														<s:param name="value" value="#attr.listingOptions.maximumCommentsLength" />
													</s:text>
												</td>
											</tr>
											<tr class="listrow0">
												<td colspan="5">
													<s:textfield theme="simple" cssClass="textfield" size="80" maxlength="%{#attr.listingOptions.maximumCommentsLength}" name="auctionWonmap[%{#attr.row.id}].message" value="" />
												</td>
											</tr>
											<s:hidden name="auctionWonmap[%{#attr.row.id}].itemId.itemId" value="%{#attr.row.items.itemId}" />
											<s:if test="#attr.row.items.itemtype.id == 4">
												<s:hidden name="auctionWonmap[%{#attr.row.id}].userByToUserId.id" value="%{#attr.row.user.id}" />
											</s:if>
											<s:else>
												<s:hidden name="auctionWonmap[%{#attr.row.id}].userByToUserId.id" value="%{#attr.row.items.userId.id}" />
											</s:else>
											<s:if test="page == 'feedbackForBuyer.htm'"><s:hidden name="auctionWonmap[%{#attr.row.id}].userType" value="B" /></s:if>
											<s:else><s:hidden name="auctionWonmap[%{#attr.row.id}].userType" value="S" /></s:else>
										</display:column>
									</display:table>
									</s:if>
									<s:else>
									No feedback to post
									</s:else>
								</td>
							</tr>
						</tbody>
					</table>
				</td>
			</tr>
			<tr>
				<td align="center" colspan="5">
					<table border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody>
							<tr>
								<td align="right">
									<table border="0" cellspacing="0" cellpadding="0">
											<tr>
												<td><img src="images/middle/btn-grey-left1.gif" alt=" " width="6" height="23" /></td>
												<td class="btn-grey-middle1 "><s:submit theme="simple" value="Submit feedback" cssClass="submit-btn-common" /></td>
												<td><img src="images/middle/btn-grey-right1.gif" alt=" " width="6" height="23" /></td>
											</tr>
									</table>
								</td>
								<td align="left">
									<table border="0" cellspacing="0" cellpadding="0">
											<tr>
												<td><img src="images/middle/btn-grey-left1.gif" alt=" " width="6" height="23" /></td>
												<td class="btn-grey-middle1 "><s:reset theme="simple" value="Reset" cssClass="submit-btn-common" /></td>
												<td><img src="images/middle/btn-grey-right1.gif" alt=" " width="6" height="23" /></td>
											</tr>
										</table>

								</td>
							</tr>

						</tbody>
					</table>
				</td>
			</tr>
		</tbody>
	</table>
	<table border="0" cellpadding="4" cellspacing="0" width="100%">
		<tbody>
			<tr>
				<td align="left" nowrap="nowrap" class="common-text">
					<s:text name="feedbackform.showpage" />				</td>
			</tr>
		</tbody>
	</table>
	<table align="center" border="0" cellpadding="0" cellspacing="0"
		width="100%">
		<tbody>
			<tr>
				<td height="5">
					<img
						src="#/auction_demo/images/dot1x1.gif"
						border="0" height="5">
				</td>
			</tr>
		</tbody>
	</table>
	<table bgcolor="#ffffff" cellpadding="6" cellspacing="0" width="100%">
		<tbody>
			<tr>
				<td width="100%">
					<p align="justify" class="common-text">
						<s:text name="feedbackform.para3" />				</p>
				</td>
			</tr>
			<tr>
				<td width="100%">
				  <p align="justify">
						<b class="common-bold-text"><s:text name="feedbackform.warning" /></b> <span class="common-text"><s:text name="feedbackform.para4" /></span>					<br>
						<b class="common-bold-text"><s:text name="feedbackform.para5" /></b>
						<br>
					    <span class="common-text"><s:text name="feedbackform.para6" />					</span></p>
				</td>
			</tr>

		</tbody>
	</table>
</s:form>
